package com.example.medioplayer.activity;

import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view.View;
import android.widget.ImageView;

import com.example.medioplayer.R;
import com.example.medioplayer.TitleBar;

import butterknife.BindView;
import butterknife.ButterKnife;
import butterknife.OnClick;

public class Test2Activity extends AppCompatActivity {
    @BindView(R.id.at_title)
    TitleBar at_title;
    @BindView(R.id.vt_img)
    ImageView vt_img;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_test2);
        ButterKnife.bind(this);
//        at_title.setTitle("这是自定义标题");
    }

    @OnClick({R.id.vt_img})
    public void onClickListener(View v) {
        switch (v.getId()) {
            case R.id.vt_img:
                finish();
                break;
        }
    }
}
